package com.sm.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.sm.dao.interfaces.StudentMapper;
import com.sm.entity.Student;
import com.sm.entity.StudentExample;

@Repository("studentMapper1")
public class StudentMapperImpl extends SqlSessionDaoSupport implements StudentMapper {
	private static Log log = LogFactory.getLog(StudentMapperImpl.class);
	private final static String namespace="com.sm.dao.interfaces.StudentMapper";
    @Resource
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory){
        super.setSqlSessionFactory(sqlSessionFactory);
    }
	public long countByExample(StudentExample example) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int deleteByExample(StudentExample example) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int insert(Student record) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int insertSelective(Student record) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public List<Student> selectByExample(StudentExample example) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return null;
	}

	public Student selectByPrimaryKey(Integer id) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return this.getSqlSession().selectOne(namespace+".selectByPrimaryKey", id);
	}

	public int updateByExampleSelective(Student record, StudentExample example) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int updateByExample(Student record, StudentExample example) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int updateByPrimaryKeySelective(Student record) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

	public int updateByPrimaryKey(Student record) {
		log.error("my impl dao interfaces extends SqlSessionDaoSupport 必须手动设置数据源,迎合多数据源要求");
		return 0;
	}

}
